/**
 * Created by oneminute on 8/29/14.
 */

var winston = require("winston");
var lz = require("../../lib/utils/modules")();

var options = {
    from: new Date - 24 * 60 * 60 * 1000,
    until: new Date,
    limit: 10,
    start: 0,
    order: 'desc',
    fields: ['message']
};

lz.Logger.info("log 1");

//
// Find items logged between today and yesterday.
//
winston.query(options, function (err, results) {
    if (err) {
        throw err;
    }

    console.log(results);
});
